package com.mz.mattress.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mz.mattress.admin.api.req.MemberCardQueryReq;
import com.mz.mattress.admin.api.req.MemberCardReq;
import com.mz.mattress.admin.api.resp.MerchantCardSum;
import com.mz.mattress.api.common.Result;
import com.mz.mattress.api.entity.MemberCard;

public interface MemberCardService {

    //我的卡券
    Result<IPage<MemberCard>> listPage(MemberCardReq req);

    //管理端使用明细
    Result<IPage<MemberCard>> listAdminPage(MemberCardQueryReq req);

    Result<MemberCard> getById(Integer id);

    Result<MerchantCardSum> selectSum(Integer merchantId, Integer cardId);

}
